﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using DTO;
using DAO;
namespace BUS
{
    public class BANBUS
    {
        ///CỦA AI THÌ TỰ ĐÓNG KHUNG VÀO. TRÁNH XÓA NHẦM CODE
        ////////////CỦA LINH////////////////
        public List<BANDTO> LayDSBan(TANGDTO TDTO)
        {
            BANDAO BDAO = new BANDAO();
            return BDAO.LayDSBan(TDTO);
        }
        public List<BANDTO> LayDSBan2(TANGDTO TDTO, int n)
        {
            BANDAO BDAO = new BANDAO();
            return BDAO.LayDSBan2(TDTO, n);
        }
        ///////////////////////////////////
        public DataTable TimBan(BANDTO BDTO)
        {
            BANDAO BDAO = new BANDAO();
            return BDAO.TimBan(BDTO);
        }

        public int ThemBan(BANDTO BDTO)
        {
            BANDAO BDAO = new BANDAO();
            return BDAO.ThemBan(BDTO);
        }
        public int SuaBan(BANDTO BDTO)
        {
            BANDAO BDAO = new BANDAO();
            return BDAO.SuaBan(BDTO);
        }
        public int XoaBan(BANDTO BDTO)
        {
            BANDAO BDAO = new BANDAO();
            return BDAO.XoaBan(BDTO);
        }
        public DataTable ChiTietHD(BANDTO BDTO)
        {
            BANDAO BDAO = new BANDAO();
            return BDAO.ChiTietHD(BDTO);
        }
        public DataTable TimBanFull(BANDTO BDTO)
        {
            BANDAO BDAO = new BANDAO();
            return BDAO.TimBanFull(BDTO);
        }
        public DataTable QLBanXoa(BANDTO BDTO)
        {
            BANDAO BDAO = new BANDAO();
            return BDAO.QLBanXoa(BDTO);
        }
        public int PhucHoiBan(BANDTO BDTO)
        {
            BANDAO BDAO = new BANDAO();
            return BDAO.PhucHoiBan(BDTO);
        }
        public DataTable LOADBAN(BANDTO BDTO)
        {
            BANDAO BDAO = new BANDAO();
            return BDAO.LOADBAN(BDTO);
        }
        public int XoaMatBan(BANDTO BDTO)
        {
            BANDAO BDAO = new BANDAO();
            return BDAO.XoaMatBan(BDTO);
        }
        public DataTable DSBANXOA(BANDTO BDTO)
        {
            BANDAO BDAO = new BANDAO();
            return BDAO.DSBANXOA(BDTO);
        }
    }
}
